package cn.dt.basic.util;

import lombok.Data;

/**
 * author:代伟
 * date:2022/6/5 10:56
 */
@Data
public class AjaxResult {
    private Boolean success = true;
    private String message = "操作成功！！";
    private Object resultObj;

    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;
    }
    public AjaxResult setResultObj(Object resultObj) {
        this.resultObj = resultObj;
        return this;
    }
    public static AjaxResult me(){
        return  new AjaxResult();
    }
}
